hide() hit = false color = random [purple, pink, yellow, gold, aquamarine, magenta, red, blue, orange, seagreen] t = (new Turtle color) t.pen color, 0.1 t.speed Infinity distance = (x1, y1, x2, y2) -> dx = x2 - x1 dy = y2 - y1 Math.sqrt( dx * dx + dy * dy ) forever 1000, -> if hit is false if (random 2) is 1 t.rt random 100 else t.lt random 100 t.fd random 8 else t.speed 1 t.dot red, 50 click (e) -> txy = t.getxy() dis = (distance((e.x), e.y, txy[0], txy[1])) if dis < 25 hit = true write 'You hit the turtle!'